#include "wx/wx.h"
#include "VUMeter.h"
#include "wx/tglbtn.h"
#include "Sampler.h"


enum {
	ID_Quit = 1,
	ID_About,
	ID_Save,
	ID_Load,
	ID_RecordMode,
	ID_AutoTrigger,
	ID_VUMeter
};

class Captuer : public wxFrame {
	public:
		Captuer(const wxString& title);
		~Captuer();
		void OnQuit(wxCommandEvent& event);
		void OnAbout(wxCommandEvent& event);
		
		
		void onSave(wxCommandEvent& event);
		void onLoad(wxCommandEvent& event);
		void onKeyDown(wxKeyEvent& event);
		void onKeyUp(wxKeyEvent& event);
		void onCharHook();
		void onToggleRecordMode(wxCommandEvent& event);
		void onToggleAutoTrigger(wxCommandEvent& event);
		void OnScroll(wxScrollEvent& event);
		int GetCurWidth();
		void update();
  		
		DECLARE_EVENT_TABLE()

		Sampler *sampler;
		wxSlider *m_slider;
		VUMeter *m_wid;
		wxToggleButton* recordModeButton;
		wxToggleButton* autotriggerButton;
		wxButton* saveButton;
		wxButton* loadButton;
		wxButton* quitButton;
		int cur_width;
	
};
